Skip to content

Conversation

@hareshkh
Copy link
Contributor

Which issue does this PR close?

Rationale for this change

If I've understood semantic equality correctly, any two timestamps should meet the bar for equality regardless of time units and timezones, but the current code doesn't reflect that.

What changes are included in this PR?

Adds a branch to this method for timestamps.

Are these changes tested?

Yes

Are there any user-facing changes?

Yes

…#17777)

* Extend datatype semantic equality to include timestamps

* test

* Respond to comments

* cargo fmt

---------

Co-authored-by: Shiv Bhatia <[email protected]>
@alamb alamb changed the title Extend datatype semantic equality check to include timestamps (#17777) [branch-50] Extend datatype semantic equality check to include timestamps (#17777) Oct 17, 2025
@alamb
Copy link
Contributor

alamb commented Oct 18, 2025

Merging to pick up #18141 and try and get a clean CI run

));

// Succeeds if decimal precision and scale are different
assert!(DFSchema::datatype_is_semantically_equal(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these decimal tests appear to have been backported from main without the corresponding code. I will remove them

Copy link
Contributor

@alamb alamb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks again @hareshkh

@alamb alamb merged commit ade5232 into apache:branch-50 Oct 20, 2025
28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

common Related to common crate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants